//app.js后端
const express = require('express')
const cors = require('cors');

//启动app.js
const app =express();
app.use(cors())
const { 
    rfile,
    wfile
}=require('./rfwf.js')
app.get('/hl', async (req, res) => {
    const result = await rfile('table.json');
    res.json(result);
  });
app.listen(3000, () => {
    console.log('服务器启动成功');
  });
  